﻿using Microsoft.EntityFrameworkCore.Migrations;

namespace FinancialReportPowerPointAddIn.Migrations
{
    public partial class _20231122 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.CreateTable(
                name: "CrewLabors",
                columns: table => new
                {
                    CrewLaborId = table.Column<int>(nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    Year = table.Column<int>(nullable: false),
                    Month = table.Column<int>(nullable: false),
                    Uscode = table.Column<string>(nullable: true),
                    非全 = table.Column<decimal>(nullable: false),
                    兼职人员 = table.Column<decimal>(nullable: false),
                    全职 = table.Column<decimal>(nullable: false),
                    实习生 = table.Column<decimal>(nullable: false),
                    退休 = table.Column<decimal>(nullable: false),
                    学生 = table.Column<decimal>(nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_CrewLabors", x => x.CrewLaborId);
                });

            migrationBuilder.CreateTable(
                name: "ManageNumbers",
                columns: table => new
                {
                    ManageNumberId = table.Column<int>(nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    Year = table.Column<int>(nullable: false),
                    Month = table.Column<int>(nullable: false),
                    Uscode = table.Column<string>(nullable: true),
                    RGM = table.Column<int>(nullable: false),
                    RPM = table.Column<int>(nullable: false),
                    RDM = table.Column<int>(nullable: false),
                    GEL = table.Column<int>(nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_ManageNumbers", x => x.ManageNumberId);
                });
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropTable(
                name: "CrewLabors");

            migrationBuilder.DropTable(
                name: "ManageNumbers");
        }
    }
}
